package com.naodong.shenluntiku.mvp.model.bean;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Generated;
import io.objectbox.annotation.Id;
import io.objectbox.annotation.apihint.Internal;

/**
 * Created by grey on 2017/6/20.
 */
@Entity
public class BoxNetworkData {

    public static final int VERSION_CODE = 1;

    public static final int FIND_BANNER_ID = 1000;//发现banner栏请求数据
    public static final int FIND_GRADE_TESTS_ID = 2000;//发现学习题型请求数据

    @Id
    private long id;
    private int type;//数据类型
    private String jsonData;
    private long validTime;//有效时间,后期可扩展
    private int versionCode;

    @Generated(235435176)
    @Internal
    /** This constructor was generated by ObjectBox and may change any time. */
    public BoxNetworkData(long id, int type, String jsonData, long validTime, int versionCode) {
        this.id = id;
        this.type = type;
        this.jsonData = jsonData;
        this.validTime = validTime;
        this.versionCode = versionCode;
    }

    @Generated(398557506)
    public BoxNetworkData() {
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getJsonData() {
        return jsonData;
    }

    public void setJsonData(String jsonData) {
        this.jsonData = jsonData;
    }

    public long getValidTime() {
        return validTime;
    }

    public void setValidTime(long validTime) {
        this.validTime = validTime;
    }

    public int getVersionCode() {
        return versionCode;
    }

    public void setVersionCode(int versionCode) {
        this.versionCode = versionCode;
    }


}
